package com.ucode.tool.log.convert;
import ch.qos.logback.classic.pattern.ClassicConverter;
import ch.qos.logback.classic.spi.ILoggingEvent;
import cn.hutool.system.SystemUtil;

/**
 * logback日志获取server端服务IP
 * @author liliang 
 */
public class ServerIP4LogConverter extends ClassicConverter {

	
	@Override
	public String convert(ILoggingEvent event) {
	    return SystemUtil.getHostInfo().getAddress();
	}

}